package com.ailink.spring.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MyAspect {

    @Pointcut("execution(* com.ailink.spring.aop.MyAop.*(..))")
    public void pointCut() {

    }

    @Around("pointCut()")
    public Object around(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
        Object response = proceedingJoinPoint.proceed();
        return response;
    }

    @Before("pointCut()")
    public void before() {

    }

    @After("pointCut()")
    public void after() {

    }

    @AfterReturning("pointCut()")
    public void afterReturning() {

    }

    @AfterThrowing("pointCut()")
    public void afterThrowing() {

    }
}
